// pages/home/index/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
   
  },

  // 点击跳转
  navigationClick: function (e) {
    let id = parseInt(e.currentTarget.dataset.id);
    switch (id) {
      case 1:
        wx.navigateTo({
          url: '/pages/user/myorderlist/myorderlist'
        })
        break;
      case 2:
        wx.navigateTo({
          url: '/pages/user/myorderlist/myorderlist'
        })
        break;
      case 3:
        wx.navigateTo({
          url: '/pages/user/myorderlist/myorderlist'
        })
        break;
      case 4:
        wx.navigateTo({
          url: '/pages/user/collectlist/collectlist'
        })
        break;
      case 5:
        wx.navigateTo({
          url: '/pages/user/account/account'

        })
        break;
      case 6:
        wx.navigateTo({
          url: '../detail/detail?type=6',
        })
        break;
      case 7:
        wx.navigateTo({
          url: '../detail/detail?type=7',
        })
        break;
      case 8:
        wx.navigateTo({
          url: '../detail/detail?type=8',
        })
        break;
      case 9:
        wx.navigateTo({
          url: '../assess/index/index',
        })
        break;
      case 10:
        wx.navigateTo({
          url: '../detail/detail?type=10',
        })
        break;
      case 11:
        wx.navigateTo({
          url: '../detail/detail?type=11',
        })
        break;
    }

  },


  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})